<div id="bill_main_description">
<div id="bill_main_description1"><?php include (TEMPLATEPATH . '/searchform_div.php'); ?></div>

<?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar(2) ) : ?>

<ul class="bill_link_list">


		<?php 
			$args = array(
				'category_name'=>'walk',
				'showposts'=> 3,
				'order'=>'DESC',
			);
		query_posts($args);
		if (have_posts()) : ?>

		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
		<?php /* If this is a category archive */ if (is_category()) { ?>				
		<h3><?php echo single_cat_title(); ?></h3>
		
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h3>Архив за <?php the_time('d M Y'); ?></h3>
		
	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h3>Архив за
		<?php the_time('F Y'); ?></h3>

		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h3>Архив за <?php the_time('Y'); ?></h3>
		
	  <?php /* If this is a search */ } elseif (is_search()) { ?>
		<!-- <h3>Результаты поиска</h3>
 -->		
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		Архив автора

		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		Архив сайта

 
		<?php } ?>
			<?php 
				while (have_posts()) : the_post(); 
			?>
				<li id="post-<?php the_ID(); ?>">
				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
				<?php the_title(); ?></a>
				<p>	
				<?php the_excerpt(''); ?>
				</p>
				</li>
		<?php endwhile; ?>
		<?php else : ?>
			<?php _e("<!--:ru-->Не найдено<!--:--><!--:et-->Ei leidtud midagi<!--:-->"); ?>
		<?php include (TEMPLATEPATH . '/searchform_div.php'); ?>

	<?php endif; ?>
<p class="right_article" style="margin-top:15px; font-size:12px;"><b>
<?php _e("<!--:ru-->Все статьи рубрики:<!--:--><!--:et-->Kõik artiklid rubriigis:<!--:-->"); ?>
</b> <?php the_category(', ') ?></p>		
</ul>

<?php endif; ?>


<div id="rekl_right" role="banner">
   <div id="headerimg">
		<?php 
			$args = array(
				'category_name'=>'rekl',
				'showposts'=> 4,
			);
		query_posts($args);
		if (have_posts()) : ?>
		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
		<?php /* If this is a category archive */ if (is_category()) { ?>				
		<h3><?php echo single_cat_title(); ?></h3>
				<?php } ?>
		<ul>
			<?php 
				while (have_posts()) : the_post(); 
			?>
				<li id="post-<?php the_ID(); ?>">
				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
				<?php the_title(); ?></a>
				<p>	
				<?php the_excerpt(''); ?>
				</p>
				</li>
		<?php endwhile; ?>
		</ul>
<?php endif; ?>
   </div>

<?php
if (function_exists('cd_ad_zone')) {
   cd_ad_zone( 4 );
}
?>
</div>
</div>




